//
//  PaymentConfirm.h
//  DaoZiJinFu
//
//  Created by woker on 16/6/29.
//  Copyright © 2016年 iwoker. All rights reserved.
//

#import <UIKit/UIKit.h>

#define timeLine 60
@class PaymentConfirm;
@protocol paymentDelegate <NSObject>

- (void)confirmRecharge:(NSString *)code;
- (void)sendCode;

@end

@interface PaymentConfirm : UIView<UITextFieldDelegate>

@property (strong, nonatomic) IBOutlet UIView *alert;
@property (nonatomic, strong) PaymentConfirm *paymentConfirm;
@property (strong, nonatomic) IBOutlet UIButton *closeBtn;
@property (strong, nonatomic) IBOutlet UIButton *cancelBtn;
@property (strong, nonatomic) IBOutlet UILabel *msgAlert;
@property (strong, nonatomic) IBOutlet UITextField *msgCodeText;
@property (strong, nonatomic) IBOutlet UIButton *comfirmBtn;
@property (strong, nonatomic) IBOutlet UILabel *receiveCodeBtn;

@property (retain, nonatomic) NSTimer *timer;
@property (assign, nonatomic) NSInteger timerCount;

@property (assign, nonatomic) id<paymentDelegate> delegate;

+ (instancetype)showView:(UIView *)view withMobile:(NSString *)mobile;
- (IBAction)closeView:(id)sender;
- (IBAction)comfirmClick:(id)sender;
- (IBAction)cancelBtnClick:(id)sender;

@end
